home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / math / gle-3.000 / gle-3 / gle / makefile.dj < prev    next >
Makefile  |  1995-02-07  |  3KB  |  131 lines

  1. # main makefile for MS-DOS and DJGPP/Gnu-Make by Axel Rohde
  2. # Important:
  3. # remove the  -Dunix  statement from the file djgpp/lib/specs to compile GLE!
  4.  
  5. include config.i
  6.  
  7. GLEOBJS = \
  8.     gle.o drawit.o pass.o token.o polish.o fn.o $(MEMMOVE) \
  9.     var.o eval.o general.o \
  10.     run.o sub.o font.o core.o name.o keyword.o axis.o graph.o  \
  11.     b_tab.o b_text.o fitbez.o fitcf.o begin.o key.o mychar.o graph2.o \
  12.     memory.o gprint.o edt.o menu.o \
  13.     curve.o tex.o turbo.o turboscr.o inkey.o
  14.  
  15. PSOBJS = d_ps.o 
  16. VTOBJS = d_curses.o easydev.o 
  17. TEKOBJS = d_tek.o easydev.o 
  18. XOBJS = d_x.o 
  19. REGISOBJS = d_regis.o 
  20. HPGLOBJS = d_hpgl.o easydev.o 
  21. DVIOBJS  = d_bmp.o easydev.o
  22. PCVGAOBJS = d_pc32.o mouse.o
  23. WPOBJS = dviwp.o
  24.  
  25. # rules to build gle executables
  26.  
  27. # varargs didn't work  with GCC on DEC-5400 Mips, so uses native compiler
  28. #gleparts: warning gle surface gle_ps fbuild makefmt dofonts \
  29. #        inittex.ini gle_hpgl gle_dvi \
  30. #        gle_dvip graph.idx
  31. #        echo
  32.  
  33. gleparts: warning gle_ps fbuild makefmt dofonts \
  34.     inittex.ini gle_hpgl gle_dvi \
  35.     gle_dvip graph.idx gle_vga
  36.  
  37.  
  38. warning:
  39.     utod makewarn.h
  40.     type makewarn.h|more
  41.  
  42. gle: glecmd.c
  43.     $(CC) -DGLEBINS=\"$(GLE_BINS)\" glecmd.c -o gle $(CFLAGS) $(LIBS)
  44.  
  45. makeidx: makeidx.c
  46.     $(CC) makeidx.c -o makeidx $(CFLAGS) $(LIBS)
  47.  
  48. graph.idx: graph.hlp makeidx
  49.     utod graph.hlp
  50.     go32 makeidx
  51.  
  52. surface: surfcmd.c
  53.     $(CC) -DGLEBINS=\"$(GLE_BINS)\" surfcmd.c -o surface $(CFLAGS) $(LIBS)
  54.  
  55. #-ysymname to trace a symbol
  56. gle_ps: $(PSOBJS) $(GLEOBJS)
  57.     $(CC) -o gle_ps $(CFLAGS) $(GLEOBJS) $(PSOBJS) $(LIBS)
  58.  
  59. # if this rule is failing, make sure you have define GLE_TOP
  60. # and also delete any old copies of INITTEX.INI
  61. inittex.ini: init.tex
  62.     ./gle_ps init.tex
  63.  
  64. gle_vt: $(VTOBJS) $(GLEOBJS)
  65.     $(CC) -o gle_vt $(CFLAGS) $(GLEOBJS) $(VTOBJS) $(LIBS)
  66.  
  67. gle_hpgl: $(HPGLOBJS) $(GLEOBJS)
  68.     $(CC) -o gle_hpgl $(CFLAGS) $(GLEOBJS) $(HPGLOBJS) $(LIBS)
  69.  
  70. gle_vga: $(PCVGAOBJS) $(GLEOBJS)
  71.     $(CC) -o gle_vga $(CFLAGS) $(GLEOBJS) $(PCVGAOBJS) -lbcc -lgrx $(LIBS)
  72.  
  73. gle_tek: $(TEKOBJS) $(GLEOBJS)
  74.     $(CC) -o gle_tek $(CFLAGS) $(GLEOBJS) $(TEKOBJS) $(LIBS)
  75.  
  76. gle_dvi: $(DVIOBJS) $(GLEOBJS)
  77.     $(CC) -o gle_dvi $(CFLAGS) $(GLEOBJS) $(DVIOBJS) $(LIBS)
  78.  
  79. gle_x: $(XOBJS) $(GLEOBJS)
  80.     $(CC) -o gle_x $(CFLAGS) $(GLEOBJS) $(XOBJS) $(XLIBS)
  81.  
  82. gle_regis: $(REGISOBJS) $(GLEOBJS)
  83.     $(CC) -o gle_regis  $(CFLAGS) $(GLEOBJS) $(REGISOBJS) $(LIBS)
  84.  
  85. gle_dvip: dvitobit.o bmp.o bmp.h dvivt.o
  86.     $(CC) -o gle_dvip $(CFLAGS) dvitobit.o bmp.o dvivt.o -lbcc -lgrx $(LIBS)
  87.  
  88.  
  89. dofonts:
  90.     cd font
  91.     $(MAKE)
  92.     cd ..
  93.  
  94. doutils:
  95.     cd util\fitls
  96.     $(MAKE) 
  97.     cd ..\..
  98.     cd util\fitz
  99.     $(MAKE)
  100.     cd ..\..
  101.     cd util\manip
  102.     $(MAKE)
  103.     cd ..\..
  104.     cd util\letz
  105.     $(MAKE)
  106.     cd ..\..
  107.     cd util\contour
  108.     $(MAKE)
  109.     cd ..\..
  110.     cd util\surf
  111.     $(MAKE)
  112.     cd ..\..
  113.  
  114. makefmt: makefmt.o parseafm.o parseafm.h
  115.     $(CC) -o makefmt makefmt.o parseafm.o -lm -lc
  116.  
  117. fbuild: fbuild.o token.o
  118.     $(CC) -o fbuild fbuild.o token.o -lm -lc
  119.  
  120. gle.o: gle.c glepath.h all.h
  121.     $(CC) -c -DGLEPATH=\"$(GLE_PATH)/\" $(CFLAGS) gle.c
  122.  
  123. varargs.o: varargs.c
  124.     cc -w -c varargs.c
  125.  
  126. $(GLEOBJS): \
  127.     all.h axis.h begin.h color.h core.h edt.h \
  128.     font.h glepro.h global.h graph.h justify.h key.h \
  129.     mydev.h mygraph.h tex.h 
  130.  
  131.